<template>
  <div class="nofind">
    <div class="contianer  " style="  margin: 50px auto;">
      <div class="row d-flex  justify-content-center aligin-item-center">
        <h3 class="animated swing">哥，你访问的页面不存在</h3>
        <div class="row">
          <div
            class="error-code col-12 hvr-wobble-horizontal wow bounceInLeft data-wow-duration='1.5s' "
          >
            <strong>4</strong> <span>0</span><strong>4</strong>
          </div>
          <div class="col-12  ">
            <img class="hvr-buzz" src="@/assets/404.jpg" alt="" />
          </div>
          <div class="row">
            <router-link to="/home" tag="strong" class="gohome"
              >回到首页</router-link
            >
            <a class="  gohome" size="large" @click="goBack">返回上一页</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  created() {
    new WOW().init();
  },
  methods: {
    goBack() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
.nofind {
  .bg {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url("~@/assets/404.png") no-repeat;
    background-size: 100% 100%;
    .mdbg {
      position: absolute;
      top: 85%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
  img {
    max-width: 18.75rem;
  }
  span {
    font-size: 11em;
    text-shadow: 1px 3px 3px #000;
    color: red;
  }
  a {
    text-decoration: none;
    color: #2c3e50;
  }
  .gohome {
    cursor: pointer;
    padding: 10px;
    font-size: 2em;
  }
  .error-code {
    line-height: 1;
    font-weight: bolder;
  }
  strong {
    font-size: 5em;
    color: #2d8cf0;
  }
}
</style>
